Cast the return value of g_array_free to void* before casting to char**
authorTing-Wei Lan <lantw@src.gnome.org>
Sat, 9 Jan 2016 09:24:12 +0000 (17:24 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Sun, 10 Jan 2016 16:23:46 +0000 (00:23 +0800)
Let the compiler know that we don't want to use it as char*, so there is
no alignment error.

https://bugzilla.gnome.org/show_bug.cgi?id=760350
https://bugzilla.gnome.org/show_bug.cgi?id=755659

gtk/gtkactionmuxer.c

index 643aeb31900263afd63487926a6eed37d3e2f00f..d8edef0e78bb39062b0d5b01610ab5ceac8011d5 100644 (file)
@@ -138,7 +138,7 @@ gtk_action_muxer_list_actions (GActionGroup *action_group)
                             actions);
     }
 
-  return (gchar **) g_array_free (actions, FALSE);
+  return (gchar **)(void *) g_array_free (actions, FALSE);
 }
 
 static Group *